package org.dromara.myprogram.domain.bo;

import org.dromara.myprogram.domain.MyUnionlotto;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 双色球业务对象 my_unionlotto
 *
 * @author gjb
 * @date 2024-08-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = MyUnionlotto.class, reverseConvertGenerate = false)
public class MyUnionlottoBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 类型
     */
    @NotBlank(message = "类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 期号
     */
    @NotBlank(message = "期号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String code;

    /**
     * 日期
     */
    @NotBlank(message = "日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private String date;

    /**
     * 日期
     */
    @NotBlank(message = "日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private String week;

    /**
     * 红球
     */
    @NotBlank(message = "红球不能为空", groups = { AddGroup.class, EditGroup.class })
    private String red;

    /**
     * 蓝球
     */
    @NotBlank(message = "蓝球不能为空", groups = { AddGroup.class, EditGroup.class })
    private String blue;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
